<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />


<atleap:constants className="org.apache.struts.Globals" var="LOCALE_KEY" />
<c:set var="language" value="${sessionScope[pageScope.LOCALE_KEY].language}" />

<atleap:content identifier="information" ignore="true" />
<atleap:messages />

<atleap:sequenceIterator identifier="catalog" var="page"
        sequenceIdVar="sequenceId" sequenceItemIdVar="sequenceItemId">
    <atleap:content uri="${page.uri}" identifier="title" var="title" filter="true" />
    <div class="elementDiv">
        <div class="elementDescrDiv">
            <atleap:content identifier="annotation" uri="${page.uri}" />
        </div>
        <div class="elementLinkDiv">
            <atleap:rewriteUrl var="createUrl" action="core/sequenceItem/callCreate">
                <atleap:param name="sequenceId" value="${sequenceId}" />
            </atleap:rewriteUrl>
            <atleap:rewriteUrl var="editUrl" action="core/sequenceItem/callUpdate">
                <atleap:param name="id" value="${sequenceItemId}" />
            </atleap:rewriteUrl>
            <atleap:rewriteUrl var="deleteUrl" action="core/sequenceItem/delete">
                <atleap:param name="id" value="${sequenceItemId}" />
            </atleap:rewriteUrl>
            <atleap:editCollection editUri="${editUrl}" createUri="${createUrl}" deleteUri="${deleteUrl}">
                <atleap:link action="${page.uri}" title="${title}">${title}</atleap:link>
            </atleap:editCollection>
        </div>
    </div>
</atleap:sequenceIterator>
